﻿// code01050200.cpp : 初始成员函数
// Sales_items的两个实例间成员函数的比较

#include <iostream>
#include "Sales_item.h"
using namespace std;
//Sales_items的两个实例间成员函数的比较
int main()
{
    Sales_item book1, book2;
    while (true)
    {
		cout << "输入Sales_items的两个实例" << endl;
		cin >> book1 >> book2;
		if (book1.isbn()==book2.isbn())
	    {
			cout << book1 + book2 << endl;
			break;
	    }
		else
		{
			cout << "不同种类的数无法合计" << endl;
		}
    }
	return 0;
}

